package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import java.util.Date;

import static org.jsola.hr.example.SalaryBasicExample.*;

/**
 * 员工薪资表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【员工薪资表】的参数")
@Data
public class SalaryBasicAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_SALARY_BASIC, example = E_SALARY_BASIC)
    private Integer salaryBasic;

    @ApiModelProperty(notes = N_TRAFFIC_SUBSIDY, example = E_TRAFFIC_SUBSIDY)
    private Integer trafficSubsidy;

    @ApiModelProperty(notes = N_MEAL_SUBSIDY, example = E_MEAL_SUBSIDY)
    private Integer mealSubsidy;

    @ApiModelProperty(notes = N_SALARY_PERFORMANCE, example = E_SALARY_PERFORMANCE)
    private Integer salaryPerformance;

    @ApiModelProperty(notes = N_REASON, example = E_REASON)
    @Length(max = 255, message = M_REASON_MAX)
    private String reason;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 1000, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_SALARY_TOTAL, example = E_SALARY_TOTAL)
    private Integer salaryTotal;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_EFFECTIVE_DATE, example = E_EFFECTIVE_DATE)
    private Date effectiveDate;

}

